package com.hycreate.platform.modules.voice;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 语音播报Entity
 * @author 语音播报
 * @version 2017-02-22
 */
public class SfVoice extends DataEntity<SfVoice> {
	
	private static final long serialVersionUID = 1L;
	private String context;		// 内容
	private String voiceUrl;		// 语音地址
	private String status;		// 状态，1：待播报；2：已播报
	
	public SfVoice() {
		super();
	}

	public SfVoice(String id){
		super(id);
	}

	@Length(min=0, max=64, message="内容长度必须介于 0 和 64 之间")
	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}
	
	@Length(min=0, max=500, message="语音地址长度必须介于 0 和 500 之间")
	public String getVoiceUrl() {
		return voiceUrl;
	}

	public void setVoiceUrl(String voiceUrl) {
		this.voiceUrl = voiceUrl;
	}
	
	@Length(min=0, max=64, message="状态长度必须介于 0 和 64 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}